<template>
    <div class="my-fav">

        <van-nav-bar title="我的发布" left-arrow @click-left="$router.back()" />
        <van-empty description="暂无内容" v-if="isShow" />
        <list @show="show" :API="getUserList" :cancelAPI="getDelList" :params="{ uid }" v-else />
    </div>
</template>

<script>
import {
    getUserList,
    getDelList
} from '@/API/api';
import list from '@/components/list';
import { mapState } from 'vuex';
import { Empty } from 'vant';
export default {
    data() {
        return {
            getUserList,
            getDelList,
            isShow: false
        }
    },
    computed: {
        ...mapState('users', ['uid'])
    },
    components: {
        list,
        [Empty.name]: Empty,
    },
    methods: {
        show() {
            this.isShow = true
            console.log(this.isShow);
        }
    },

  
}
</script>

<style lang="less" scoped>
::v-deep .van-nav-bar {
    background-color: @baseColor;
}
</style>